Start Menu Macro – Record Error Recovery

This step records the keystrokes that will navigate the host system out of any possible screen or menu back to the known main menu. If the host system pops up additional screens like system messages that the scripts do not take into account, then the server would notice that none of the recorded identifiers match were the host is and run this script.

From the recording toolbar button options choose record error recovery. Enter the keystrokes necessary to get back to the main menu. Possibly, an easier solution would be to type in the SM.ResetConnection command as shown.

When the system resets, it automatically re-runs the LogOnToMainMenu macro taking the host to the main menu. In this case, the complete AbortNavigation macro would look like this:

Private Function AbortNavigation() As Boolean

  On Error Resume Next

  '

  SM.ResetConnection

  '

  AbortNavigation = SM.WaitForScreen("Base", 10)

End Function

Be sure the host system is not adversely impacted by using the SM.ResetConnection command.